<?php
include_once "config.php";
$uf = new UF(Conf::pegCnxPadrao());
$uf->UF = "RN";
$chaveUF = $uf->_salvar();

$empresa = new PessoaJuridica(Conf::pegCnxPadrao());
$empresa->nome = "UnP - Universidade Potiguar";
$empresa->cnpj = "1234567890";
$empresa->optanteSimples = "N";
$chaveEmpresa = $empresa->_salvar();


$func = new Funcionario(Conf::pegCnxPadrao());
$func->nome = "Alan";
$func->email = "alan.gustavo@gmail.com";
$func->cpf = "123456789";
$func->rg = "123456";
$func->dataEmissaoRG = "2000-04-21";
$func->orgaoExpedidorRG = "SSP";
$func->UF_idUF = $chaveUF;
$func->sexo = "M";
$func->dataNascimento = "1970-09-26";
$func->naturalidade = "Brasília-DF";
$func->nacionalidade = "Brasileira";
$func->matricula = "123456";
$func->cargo = "Professor";
$func->pessoajuridica_pessoa_idPessoa = $chaveEmpresa;
$func->dataAdmissao = "2003-03-12";
$func->_salvar();




/**
?>
<!DOCTYPE html PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
    "http://www.w3.org/TR/xhtml1/DTD/xhtml1-strict.dtd">
<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
    <head>
        <meta http-equiv="Content-Type" content="text/html; charset=UTF-8" />
        <title>TESTE</title>
        <link type="text/css" href="resources/css/le-frog/jquery-ui-1.7.2.custom.css" rel="stylesheet" />
        <script type="text/javascript" src="resources/js/jquery-1.3.2.min.js"></script>
        <script type="text/javascript" src="resources/js/jquery-ui-1.7.2.custom.min.js"></script>
        <link type="text/css" href="css/estilo.css" rel="stylesheet" />
    </head>
    <body>
        <div id="page">

            <div id="header" class="clearfix">
                <hr />
            </div><!-- end header -->

            <div id="content" class="clearfix">
                <div id="main">
                    <hr />
                </div>

                <div id="sub">
                    <hr />
                </div>

                <div id="local">
                    <hr />
                </div>

                <div id="nav">
                    <hr />
                </div>

            </div><!-- end content -->

            <div id="footer" class="clearfix">
            </div><!-- end footer -->

        </div><!-- end page -->

        <div id="extra1">&nbsp;</div>
        <div id="extra2">&nbsp;</div>

    </body>
</html>